<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" 
           uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>菜谱</title>
<link rel="stylesheet" type="text/css"
	href=${pageContext.servletContext.contextPath}/themes/bootstrap/easyui.css>
<link rel="stylesheet" type="text/css"
	href=${pageContext.servletContext.contextPath}/themes/icon.css>
<link rel="stylesheet" type="text/css"
	href=${pageContext.servletContext.contextPath}/themes/color.css>
<script type="text/javascript"
	src=${pageContext.servletContext.contextPath}/js/jquery.min.js></script>
<script type="text/javascript"
	src=${pageContext.servletContext.contextPath}/js/jquery.easyui.min.js></script>
<script type="text/javascript"
	src=${pageContext.servletContext.contextPath}/js/easyui-lang-zh_CN.js></script>
</head>
<script type="text/javascript">
	$(function(){
		$.ajax({
			url:'${pageContext.servletContext.contextPath}/selectsuqiu',
			type:"post",
			dataType:"json",
			
		})
		$('#ff').form({    
		    url:"${pageContext.servletContext.contextPath}/addsuqiu",    
		    queryParams:{
		    	did:"did",
		    	oid:"oid",
		    	fname:"fname",
		    	rcontent:"rcontent",
		    	dname:"dname",
		    	jname:"jname",
		    	},
		    	success: function(data){    
		           // var da = data.flag;
		            var da = eval("("+data+")");
		            var dd = da.flag;
		            console.log(dd);
		            if (dd==true){    
		            	$.messager.show({
							title:'我的消息',
							msg:'提交成功。',
							timeout:2000,
							showType:'slide'
						})    
		            }    
		        }    
		}); 		
	})
</script>
<body>
	<form id="ff" method="post">   
	    <div>   
	    	<table>
	    		<tr>
	    			<td>桌号：</td>
	    			<td>
	    				<select class="easyui-combobox" name="did" name="did" style="width:200px;">   
						    <c:forEach items="${sessionScope.dnum}" var="d" >
						    	<option>${d.did}</option>
	    					</c:forEach>  
						</select>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td>点菜单ID：</td>
	    			<td>
	    				<select class="easyui-combobox" name="oid" style="width:200px;">   
						    <c:forEach items="${sessionScope.dnum1}" var="d" >
						    	<option>${d.oid}</option>
	    					</c:forEach>  
						</select> 
	    			</td>
	    		</tr>
	    		<tr>
	    			<td>菜品：</td>
	    			<td>
	    				<select class="easyui-combobox" name="fname" style="width:200px;">   
						    <c:forEach items="${sessionScope.dnum2}" var="d" >
						    	<option>${d.fname}</option>
	    					</c:forEach>  
						</select> 
	    			</td>
	    		</tr>
	    		<tr>
	    			<td>诉求类容：</td>
	    			<td>
	    				<select class="easyui-combobox" name="rcontent" style="width:200px;">   
						    	<option>退菜</option>
						    	<option>换菜</option>
						</select>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td>点菜员：</td>
	    			<td>
	    				<select class="easyui-combobox" name="dname" style="width:200px;">   
						    <c:forEach items="${sessionScope.dnum3}" var="d" >
						    	<option>${d.uname}</option>
	    					</c:forEach>  
						</select> 
	    			</td>
	    		</tr>
	    		<tr>
	    			<td>经理：</td>
	    			<td>
	    				<select class="easyui-combobox" name="jname" style="width:200px;">   
						    <c:forEach items="${sessionScope.dnum4}" var="d" >
						    	<option>${d.uname}</option>
	    					</c:forEach>  
						</select> 
	    			</td>
	    		</tr>
	    	</table>
	    </div>
	    <button class="easyui-linkbutton">提交诉求</button>   
	</form>
</body>
</html>